<template>
    <div class="box">
      <List title="美食">
        <img src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt="">
      </List>
      <List title="游戏">
        <ul>
          <li v-for="(game,index) in games" :key="index">
            {{game}}
          </li>
        </ul>
      </List>
      <List title="电影">
        <!-- <video src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" controls></video> -->
      </List>
    </div>
</template>

<script>
import List from './components/List.vue';
export default {
  name:'App',
  data(){
    return {
      foods:['火锅','烧烤','小龙小','牛排'],
      games:['红色警戒','使命召唤','GTA5','守望先锋'],
      films:['《教父》','《拆弹专家》','《你好》','《尚硅谷》'],
    }
  },
  components:{
    List
  },
}
</script>
<style scoped>
  .box{
    display: flex;
    justify-content: center;
    gap: 50px;
    text-align: center;
    /* list-style-type: none; */
  }
  img{
    width: 100%;
  }
  .box ul{
    padding: 0;
    margin: 0;
    color: white;
  }
  .box li{
    list-style-type: none;
    padding: 5px 0;
  }
</style>